package cn.shengongying.service;

import cn.shengongying.model.Information;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户消息信息 服务类
 * </p>
 *
 * @author RXK
 * @since 2022-01-12
 */
public interface IInformationService extends IService<Information> {

    int findByUserIdAndSourceIdAndDate(Long userId, Long sourceId, int type);

    void save(List<Information> informationList);

    List<Information> findByUserIdAndType(Long userId, Integer type, Integer offset, Integer pageSize);

    Map<Integer, Integer> statistic(Long userId);

    void insert(Information information);
}
